<?php
namespace Fendx\Doctrine;

trait TimeFieldTrait
{
    /**
     * 帐号编辑时间
     *
     * @ORM\Column(name="updated_time", type="integer", options={"default": 0})
     */
    private int $updated_time = 0;
    /**
     * 帐号创建时间
     *
     * @ORM\Column(name="created_time", type="integer", options={"default": 0})
     */
    private int $created_time = 0;

    /**
     * @return int
     */
    public function getUpdatedTime(): int
    {
        return $this->updated_time;
    }

    /**
     * @param int $updated_time
     */
    public function setUpdatedTime(int $updated_time): void
    {
        $this->updated_time = $updated_time;
    }

    /**
     * @return int
     */
    public function getCreatedTime(): int
    {
        return $this->created_time;
    }

    /**
     * @param int $created_time
     */
    public function setCreatedTime(int $created_time): void
    {
        $this->created_time = $created_time;
    }
}
